package cn.edu.scau.cmi.chenzehan.singlepattern;

public class Dean {

	private String name;
	private static Dean  dean = null;
	private Dean() {
		
	}
	private Dean(String name) {
		this.name=name;
	}
    public static boolean addDean(String name) {
		if(dean == null) {
			dean = new Dean(name);
			return true;
		}
		else return false;
	}
    public static void setDeanEmpty() {
    	dean = null;
    }
    
}

